<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>部门</title>
		<style type="text/css">
img {
	border: 0;
}

.STYLE1 a:link {
	color: #ffffff;
	text-decoration: none;
}

<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}

.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}

.STYLE6 {
	color: #000000;
	font-size: 12;
}

.STYLE10 {
	color: #000000;
	font-size: 14px;
}

.STYLE19 {
	color: #344b50;
	font-size: 12px;
}

.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}

.STYLE22 {
	font-size: 12px;
	color: #295568;
}
-->
</style>
		<script type="text/javascript" language="javascript">
function goto(){
	var arg = document.getElementById("page_goto").value;
	if(!checkIsInteger(arg)){
		arg = 1;
	}
	var url = "report_changePage.action?requestPage="+arg+"&map=user";
	window.navigate(url);
}
function checkIsInteger(str)   {    
    if(/^(\-?)(\d+)$/.test(str))   
        return true;   
    else  
        return false;   
}
</script>
	</head>

	<body>
		<form action="report_user.action" method="post">
			<table width="100%" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td height="30">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="24" bgcolor="#353c44">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td>
												<div align="center">
													<span class="STYLE1"><a
														href="report_department.action">部门</a>&nbsp;&nbsp;&nbsp;<a
														href="report_area.action">区域</a>&nbsp;&nbsp;&nbsp;<a
														href="report_building.action">机楼</a>&nbsp;&nbsp;&nbsp;<a
														href="report_access.action">门禁</a>&nbsp;&nbsp;&nbsp;<a
														href="report_manage.action">管理员</a>&nbsp;&nbsp;&nbsp;<a
														href="report_user.action">员工</a> &nbsp;&nbsp;&nbsp;<a
														href="report_open.action">开门</a>&nbsp;&nbsp;&nbsp;<a
														href="report_alarm.action">告警</a>&nbsp;&nbsp;&nbsp;</span>
												</div>
											</td>
											<td>
												<div align="right">
													<table>
														<s:submit action="report_write" value="导出" />
													</table>
												</div>
											</td>
											<td>
												<div align="left">
													<table>
														<s:submit action="report_print" value="打印" />
													</table>
												</div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table width="100%" border="0" cellpadding="0" cellspacing="1"
							bgcolor="#a8c7ce">
							<tr>
								<td width="25%" height="20" bgcolor="#ffffff" class="STYLE10"
									colspan="3">
									<div align="center">
										<input type="checkbox" name="checkbox" value="username_姓名"
											checked="checked">
										姓名 &nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="checkbox"
											value="userDepartment_部门" checked="checked">
										部门 &nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="checkbox" value="workerNO_工号"
											checked="checked">
										工号 &nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="checkbox" value="expiryDate_有效期"
											checked="checked">
										有效期 &nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="checkbox" value="callId_登记电话"
											checked="checked">
										登记电话
										<input type="checkbox" name="checkbox" value="userPhone_联系电话"
											checked="checked">
										联系电话 &nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="checkbox" value="userEmail_Email"
											checked="checked">
										Email &nbsp;&nbsp;&nbsp;
										<input type="checkbox" name="checkbox" value="userState_状态"
											checked="checked">
										状态 &nbsp;&nbsp;&nbsp;
									</div>
								</td>
							</tr>
							<tr>
								<td width="40%" height="20" bgcolor="#ffffff" class="STYLE10">
									<div align="center">
										<table>
											<!--<s:select name="userName" list="userNames" label="员工姓名"
												emptyOption="true" />-->
											<s:textfield name="userName" label="员工姓名" />
										</table>
									</div>
								</td>
								<td width="40%" height="20" bgcolor="#ffffff" class="STYLE10">
									<div align="center">
										<table>
											<s:select name="userDepart" list="userDeparts" label="员工部门"
												emptyOption="true" />
										</table>
									</div>
								</td>
								<td width="20%" height="20" bgcolor="#ffffff" class="STYLE10">
									<div align="center">
										<table>
											<s:submit value="查询" />
										</table>
									</div>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table width="100%" border="0" cellpadding="0" cellspacing="1"
							bgcolor="#a8c7ce">
							<tr>
								<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">姓名</span>
									</div>
								</td>
								<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">部门</span>
									</div>
								</td>
								<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">工号</span>
									</div>
								</td>
								<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">有效期</span>
									</div>
								</td>
								<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">登记电话</span>
									</div>
								</td>
								<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">联系电话</span>
									</div>
								</td>
								<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">email</span>
									</div>
								</td>
								<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">状态</span>
									</div>
								</td>
							</tr>
							<s:iterator value="infoList">
								<tr>
									<td height="20" bgcolor="#FFFFFF" class="STYLE19">
										<div align="center">
											<span class="STYLE19"><s:property value="username" />
											</span>
										</div>
									</td>
									<td height="20" bgcolor="#FFFFFF" class="STYLE19">
										<div align="center">
											<s:property value="userDepartment" />
										</div>
									</td>
									<td height="20" bgcolor="#FFFFFF" class="STYLE19">
										<div align="center">
											<s:property value="workerNO" />
										</div>
									</td>
									<td height="20" bgcolor="#FFFFFF" class="STYLE19">
										<div align="center">
											<s:property value="expiryDate" />
										</div>
									</td>
									<td height="20" bgcolor="#FFFFFF" class="STYLE19">
										<div align="center">
											<s:property value="callId" />
										</div>
									</td>
									<td height="20" bgcolor="#FFFFFF" class="STYLE19">
										<div align="center">
											<s:property value="userPhone" />
										</div>
									</td>
									<td height="20" bgcolor="#FFFFFF" class="STYLE19">
										<div align="center">
											<s:property value="userEmail" />
										</div>
									</td>
									<td height="20" bgcolor="#FFFFFF" class="STYLE19">
										<div align="center">
											<s:property value="userState" />
										</div>
									</td>
								</tr>
							</s:iterator>
						</table>
					</td>
				</tr>
				<tr>
					<td height="30">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="33%">
									<div align="left">
										<span class="STYLE22">&nbsp;&nbsp;&nbsp;&nbsp;共有<strong><s:property
													value="page.listSize" /> </strong> 条记录，当前第<strong><s:property
													value="page.currentPage" /> </strong> 页，共 <strong><s:property
													value="page.totalPages" /> </strong> 页 </span>
									</div>
								</td>
								<td width="67%">
									<table width="312" border="0" align="right" cellpadding="0"
										cellspacing="0">
										<tr>
											<td width="49">
												<div align="center">
													<a href="report_changePage.action?requestPage=1&map=user"><img
															src="images/main_54.gif" width="40" height="15" /> </a>

												</div>
											</td>
											<td width="49">
												<div align="center">
													<a
														href="report_changePage.action?requestPage=<s:property value="page.prePage"/>&map=user"><img
															src="images/main_56.gif" width="45" height="15" /> </a>

												</div>
											</td>
											<td width="49">
												<div align="center">
													<a
														href="report_changePage.action?requestPage=<s:property value="page.nextPage"/>&map=user"><img
															src="images/main_58.gif" width="45" height="15" /> </a>

												</div>
											</td>
											<td width="49">
												<div align="center">
													<a
														href="report_changePage.action?requestPage=<s:property value="page.totalPages"/>&map=user"><img
															src="images/main_60.gif" width="40" height="15" /> </a>

												</div>
											</td>
											<td width="37" class="STYLE22">
												<div align="center">
													转到
												</div>
											</td>
											<td width="22">
												<div align="center">
													<input type="text" name="textfield" id="page_goto"
														style="width: 20px; height: 12px; font-size: 12px; border: solid 1px #7aaebd;" />
												</div>
											</td>
											<td width="22" class="STYLE22">
												<div align="center">
													页
												</div>
											</td>
											<td width="35">
												<img src="images/main_62.gif" width="26" height="15"
													onClick="goto()" />

											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>